import request from "../util/request";

// 专业管理相关接口

// 查询专业列表
export const selectMajorList = function (params = {}) {
  return request({
    url: "/admin/specialized",
    method: "get",
    params: params,
  });
};

// 根据ID删除专业
export const deleteMajorById = function (params = {}) {
  return request({
    url: "/admin/specialized",
    method: "delete",
    params: params,
  });
};

// 添加新专业
export const insertNewMajor = function (params = {}) {
  return request({
    url: "/admin/specialized",
    method: "post",
    params: params,
  });
};
